package com.lkhd.manage.pojo;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "`ticket`")
public class Ticket implements Serializable{
    @Id
    @Column(name = "`ticketId`")
    private Long ticketid;

    @Column(name = "`activityId`")
    private Long activityid;

    @Column(name = "`userId`")
    private Long userid;

    @Column(name = "`ticketTypeId`")
    private Long tickettypeid;

    /**
     * 参加人员的姓名
     */
    @Column(name = "`name`")
    private String name;

    @Column(name = "`email`")
    private String email;

    @Column(name = "`phone`")
    private String phone;

    @Column(name = "`price`")
    private Double price;

    @Column(name = "`count`")
    private Integer count;

    /**
     * 是否使用
     */
    @Column(name = "`active`")
    private Integer active;

    /**
     * 0待支付 1已支付待参加 2已参加未评价 3已参加已评价 4过期
     */
    @Column(name = "`status`")
    private Integer status;

    @Column(name = "`createDate`",insertable=false)
    private Date createdate;

    @Column(name = "`updataDate`",updatable=false)
    private Date updatadate;

    /**
     * @return ticketId
     */
    public Long getTicketid() {
        return ticketid;
    }

    /**
     * @param ticketid
     */
    public void setTicketid(Long ticketid) {
        this.ticketid = ticketid;
    }

    /**
     * @return activityId
     */
    public Long getActivityid() {
        return activityid;
    }

    /**
     * @param activityid
     */
    public void setActivityid(Long activityid) {
        this.activityid = activityid;
    }

    /**
     * @return userId
     */
    public Long getUserid() {
        return userid;
    }

    /**
     * @param userid
     */
    public void setUserid(Long userid) {
        this.userid = userid;
    }

    /**
     * @return ticketTypeId
     */
    public Long getTickettypeid() {
        return tickettypeid;
    }

    /**
     * @param tickettypeid
     */
    public void setTickettypeid(Long tickettypeid) {
        this.tickettypeid = tickettypeid;
    }

    /**
     * 获取参加人员的姓名
     *
     * @return name - 参加人员的姓名
     */
    public String getName() {
        return name;
    }

    /**
     * 设置参加人员的姓名
     *
     * @param name 参加人员的姓名
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * @return price
     */
    public Double getPrice() {
        return price;
    }

    /**
     * @param price
     */
    public void setPrice(Double price) {
        this.price = price;
    }

    /**
     * @return count
     */
    public Integer getCount() {
        return count;
    }

    /**
     * @param count
     */
    public void setCount(Integer count) {
        this.count = count;
    }

    /**
     * 获取是否使用
     *
     * @return active - 是否使用
     */
    public Integer getActive() {
        return active;
    }

    /**
     * 设置是否使用
     *
     * @param active 是否使用
     */
    public void setActive(Integer active) {
        this.active = active;
    }

    /**
     * 获取0待支付 1已支付待参加 2已参加未评价 3已参加已评价 4过期
     *
     * @return status - 0待支付 1已支付待参加 2已参加未评价 3已参加已评价 4过期
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置0待支付 1已支付待参加 2已参加未评价 3已参加已评价 4过期
     *
     * @param status 0待支付 1已支付待参加 2已参加未评价 3已参加已评价 4过期
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return createDate
     */
    public Date getCreatedate() {
        return createdate;
    }

    /**
     * @param createdate
     */
    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    /**
     * @return updataDate
     */
    public Date getUpdatadate() {
        return updatadate;
    }

    /**
     * @param updatadate
     */
    public void setUpdatadate(Date updatadate) {
        this.updatadate = updatadate;
    }
}